package com.baidu.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baidu.pojo.User;
import com.baidu.user.mapper.UserMapper;


@Service
public class RegisterService {
	
		@Autowired
		private UserMapper userMapper;
		private int i=0;
		
		
		
		
		public Boolean insertSelective(User user) {
			user.setId(System.currentTimeMillis()+"");
			i=userMapper.insertSelective(user);
			if(i>0){
				return true;
			}
			return false;
		}
		
		
}
